package pe.gob.mef.snip.preinversion.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pe.gob.mef.snip.preinversion.dao.mybatis.ProgramaOdi2009MapperDAO;
import pe.gob.mef.snip.preinversion.domain.ProgramaOdi2009;
import pe.gob.mef.snip.preinversion.service.ProgramaOdi2009Service;

@Service
public class ProgramaOdi2009ServiceImpl implements ProgramaOdi2009Service{
	
	@Autowired
	private ProgramaOdi2009MapperDAO programaOdi2009MapperDAO;
	
	public void insertar(ProgramaOdi2009 programaOdi2009) {
		programaOdi2009MapperDAO.insertar(programaOdi2009);

	}

	public void actualizar(ProgramaOdi2009 programaOdi2009) {
		programaOdi2009MapperDAO.actualizar(programaOdi2009);
	}

	public void eliminar(ProgramaOdi2009 programaOdi2009) {
		programaOdi2009MapperDAO.eliminar(programaOdi2009);
		
	}
	
	public ProgramaOdi2009 obtener(ProgramaOdi2009 programaOdi2009) {
		 return programaOdi2009MapperDAO.obtener(programaOdi2009);
		
	}

	public List<ProgramaOdi2009> listar(ProgramaOdi2009 programaOdi2009) {
		 return programaOdi2009MapperDAO.listar(programaOdi2009);
	}
}
